<%@ page import="com.jiuye.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/8/18
  Time: 20:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--java实现JavaBean--%>
<%
    User user = new User(1,"mwh","456","男","嫖娼","我喜欢你","我真的很帅");
    out.print(user);
%>
<%--jsp动态实现JavaBean--%>
<%--<jsp:useBean id="u1" class="com.jiuye.entity.User">--%>
<%--    <jsp:setProperty name="u1" property="id" value="1"></jsp:setProperty>--%>
<%--    <jsp:setProperty name="u1" property="username" value="ztt"></jsp:setProperty>--%>
<%--    <jsp:setProperty name="u1" property="password" value="456"></jsp:setProperty>--%>
<%--    <jsp:setProperty name="u1" property="sex" value="女"></jsp:setProperty>--%>
<%--    <jsp:setProperty name="u1" property="hobby" value="嫖娼"></jsp:setProperty>--%>
<%--    <jsp:setProperty name="u1" property="work" value="我正在做爱"></jsp:setProperty>--%>
<%--    <jsp:setProperty name="u1" property="sdesc" value="我真的很猛"></jsp:setProperty>--%>

<%--</jsp:useBean>--%>
<%--<jsp:getProperty name="u1" property="id"/>--%>
<%--<jsp:getProperty name="u1" property="username"/>--%>
<%--<jsp:getProperty name="u1" property="password"/>--%>
<%--<jsp:getProperty name="u1" property="sex"/>--%>
<%--<jsp:getProperty name="u1" property="hobby"/>--%>
<%--<jsp:getProperty name="u1" property="work"/>--%>
<%--<jsp:getProperty name="u1" property="sdesc"/>--%>
</body>
</html>
